﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace CatProxy.Common
{
    public interface IRepository<T>
    {
        Pagination<T> Search(string q, int page = 1);
        T FindOne(Expression<Func<T>> predicate);
        T FindOne(string id);
    }

}
